<sf #sf mode="edit" [schema]="schema" [ui]="ui" button="none" autocomplete="off">
  <ng-template sf-template="availableBalance" let-me>
    <div *ngIf=" me.formProperty.value === null || me.formProperty.value === undefined ">-</div>
    <div *ngIf=" me.formProperty.value >= 0 " class="text-red-dark">{{me.formProperty.value | currency}}</div>
  </ng-template>
  <ng-template sf-template="bankId" let-me let-ui="ui" let-schema="schema">
    <nz-radio-group *ngIf="bankCardList.length >0" [ngModel]="me.formProperty.value" class="pay-way-group "
      (ngModelChange)="checkBankCard($event)">
      <div class=" band-card mb-xs" *ngFor="let item of bankCardList">
        <label [nzValue]="item.id" nz-radio ngModel class="pay-way-label">
          <img class="mr-sm" [src]="'./assets/images/wallet.svg'" width="26" height="26" />
          <span class="mr-sm"> {{ item.bankName}}</span>
          <span>{{item.bankCardNumber}}</span>
        </label>
      </div>
    </nz-radio-group>
    <div> <a (click)="toAddBankPage()" class="text-blue-dark">+添加银行卡 </a></div>
  </ng-template>
  <ng-template sf-template="amount" let-me>

    <nz-input-number nz-input type="number" [nzMax]="balanceObj?.allBalance" [nzMin]="1" placeholder="请输入提现金额"
      [ngModel]="me.formProperty.value" class="input-row" (ngModelChange)="me.setValue($event)" autocomplete="off"
      [nzPrecision]="2"></nz-input-number>
    <a (click)="allWithdrawal()">全部提现</a>
  </ng-template>
  <ng-template sf-template="payPsd" let-me>
    <input maxlength="6" class="input-row iconfont icon-yuandian" id="psd" [type]="'text'" autocomplete="off" nz-input
      placeholder="请输入支付密码" [ngModel]="me.formProperty.value" (ngModelChange)="changePsd($event)"
      (keydown)="keydown($event)" (mouseup)="setFocus()" #psd />
    <a (click)="toForgetPsdPage()">忘记密码?</a>
  </ng-template>

  <div class="modal-footer">
    <button nz-button type="button" (click)="close(false)">取 消</button>
    <button nz-button type="submit" nzType="primary" (click)="save(sf?.value)" [disabled]="!sf.valid"
      [nzLoading]="service.http.loading">确
      定</button>
  </div>
</sf>
